<div class="opr-fixed">
    {{ $enableTableContents := .Site.Params.enableTableContents }}
    {{ $tocField := default "toc" .Site.Params.tocField }}
    {{ $paramToc := default "true" (index .Params $tocField) }}
    {{ if and ($enableTableContents) (eq .Type "post" )  ($paramToc) }}
        <div class="open-toc expanded" id="openToc">
            <a href="#">
                <i class="iconfont icon-toc"></i>
            </a>
        </div>
    {{ end }}
    {{ if and .IsPage .Site.Params.comments.enable (eq .Type "post" ) (eq .Type "about" )}}
    <div class="go-comment">
        <a href="#gitalk">
            <i class="iconfont icon-comment"></i>
        </a>
    </div>
    {{ end }}

    {{ if .Site.Params.enableShare }}
    {{ $text := printf "%s %s %s" .Title (.Description | default (.Param "description") ) .Permalink | absLangURL }}
    <div class="share" data-clipboard-text="{{ $text }}" data-clipboard-tips="{{ T `clipboardTips` }}">
        <a href="#">
            <i class="iconfont icon-share"></i>
        </a>
    </div>
    {{ end }}
    <div class="go-top" id="goTop">
        <a href="#">
            <i class="iconfont icon-go-top"></i>
        </a>
    </div>
</div>